TARGET          := rtthread

INCLUDES        := -I. \
                   -I../_kernel/bsp \
                   -I../_kernel/components/finsh \
                   -I../_kernel/include \
                   -I../_kernel/include/libc \
                   -I../_kernel/libcpu/risc-v/common

CFLAGS          := -O0
CFLAGS          += -DOS_ENABLE_RT_THREAD -DSIMULATION -DSIMULATION_COUNT=60

SFILES          += ../_kernel/libcpu/risc-v/common/context_gcc.S

CFILES          += ../_kernel/bsp/board.c \
                   ../_kernel/components/device/device.c \
                   ../_kernel/components/finsh/cmd.c \
                   ../_kernel/components/finsh/finsh_port.c \
                   ../_kernel/components/finsh/msh.c \
                   ../_kernel/components/finsh/shell.c \
                   ../_kernel/libcpu/risc-v/common/cpuport.c \
                   ../_kernel/src/clock.c \
                   ../_kernel/src/components.c \
                   ../_kernel/src/cpu.c \
                   ../_kernel/src/idle.c \
                   ../_kernel/src/ipc.c \
                   ../_kernel/src/irq.c \
                   ../_kernel/src/kservice.c \
                   ../_kernel/src/mem.c \
                   ../_kernel/src/memheap.c \
                   ../_kernel/src/mempool.c \
                   ../_kernel/src/object.c \
                   ../_kernel/src/scheduler.c \
                   ../_kernel/src/slab.c \
                   ../_kernel/src/thread.c \
                   ../_kernel/src/timer.c

CFILES          += init.c \
                   interrupt.c

CFILES          += main.c

COMMON_DIR      := ..
include ../config.mk
